function extraTool(data, tool) {
    switch (tool.type) {
        // case "deliver":
        //     zhiju_show(tool[2], (tool[1].indexOf('?') === -1 ? tool[1] + '?' : tool[1]+'&') + '?id=' + data.id, tool[3], tool[4]);
        //     break;
        case "payment":
            layer.confirm('您确定此订单已支付了吗？', function (index) {
                layer.load();
                $.ajax({
                    type: 'post',
                    url: tool.url,
                    data: {id: data.id, status: 2},
                    dataType: "json",
                    success: function (data) {
                        if (data.code == 1) {
                            layer.msg(data.msg, {time: 1000}, function () {
                                window.location.reload();
                            });
                        } else {
                            notify.error(data.msg);
                        }
                    }
                });
                layer.closeAll();
            });
            break;
        case "finish":
            layer.confirm('您确定此订单已完成了吗？', function (index) {
                layer.load();
                $.ajax({
                    type: 'post',
                    url: tool.url,
                    data: {id: data.id, status: 3},
                    dataType: "json",
                    success: function (data) {
                        if (data.code == 1) {
                            layer.msg(data.msg, {time: 1000}, function () {
                                window.location.reload();
                            });
                        } else {
                            notify.error(data.msg);
                        }
                    }
                });
                layer.closeAll();
            });
            break;
        case "after":
            layer.confirm('您确定此订单在进行售后处理吗？', function (index) {
                layer.load();
                $.ajax({
                    type: 'post',
                    url: tool.url,
                    data: {id: data.id, status: 3},
                    dataType: "json",
                    success: function (data) {
                        if (data.code == 1) {
                            layer.msg(data.msg, {time: 1000}, function () {
                                window.location.reload();
                            });
                        } else {
                            notify.error(data.msg);
                        }
                    }
                });
                layer.closeAll();
            });
            break;
    }

}